<?php

namespace App\Models;

use App\Traits\Model as ModelTrait;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SmsCode extends Model
{
    use HasFactory;
    use ModelTrait;

    protected $table = 'sms_code';

    protected $guarded = [];

    protected $attributes = [
        'status' => 0
    ];

    /**
     * 验证码状态
     * @var string[]
     */
    public static $status = [
        0 => "已生成",
        1 => '已验证'
    ];

    public static $type = [
        101 => '登陆验证',
        102 => '注册验证'
    ];
}
?>
